#ifndef _SOCKET_HELPER_H_
#define _SOCKET_HELPER_H_

//#include "SocketConnPtr.h"

class SocketConnPtr;

int recv_all(int fd, void  * buf, int len, int timeout);
int recv_all(SocketConnPtr & conn, void  * buf, int len, int timeout);
int send_all(int fd, const void * buf, int len, int timeout);
int send_all(SocketConnPtr & conn, const void * buf, int len, int timeout);
	

#endif
